package eventplanner.rest;

import eventplanner.ejb.ServiceFacade;

import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

@Path("/event")
public class EventService {

	@Inject
	private ServiceFacade serviceFacade;

	@GET
	@Path("/todays")
	@Produces(MediaType.APPLICATION_JSON)
	public Response getTodaysEvents() {
		return Response.ok(serviceFacade.getTodaysEvents()).build();
	}
}
